﻿<%@ Page Title="Home" Language="C#" MasterPageFile="~/Presentacion/Template.Master" AutoEventWireup="true" Inherits="_api_cargo_modificar" Codebehind="Api_cargo_Modificar.aspx.cs" %>
 
<asp:Content runat="server" ID="Content1" ContentPlaceHolderID="TituloModulo">
            <h2>Cargos</h2>
</asp:Content>
<asp:Content runat="server" ID="Content2" ContentPlaceHolderID="OpcionesModulo">
            <div id='cssmenu'>
        <ul>
           <li class='has-sub'><a href="API_cargo_Agregar.aspx"><span>Agregar</span></a>
              
           </li>
           <li class='has-sub'><a href="API_cargo_Consultar.aspx"><span>Consultar</span></a>
              
           </li>
           <li class='has-sub'><a href="API_cargo_Modificar.aspx"><span>Modificar</span></a>
              
           </li>
        </ul>
    </div>
</asp:Content>
<asp:Content runat="server" ID="Content3" ContentPlaceHolderID="ContenidoDelModulo">
    <form id="form1" runat="server">
        <script type="text/javascript">
            function RefreshUpdatePanel() {
                __doPostBack('<%= UpdatePanel1.ClientID %>', '');
    };
</script>
        <script type="text/javascript">
            function ShowMessage(myMessage) {
                alert(myMessage);
            }
</script>
<h2>Modificar cargo</h2>
			<div class="auto-style2">
                <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"></asp:ScriptManager>
                <div class="auto-style1">
                Seleccione un cargo a modificar:
                <asp:TextBox ID="BuscarCargo" runat="server" onkeyup="RefreshUpdatePanel();" AutoCompleteType="none" AutoPostBack="True" EnableTheming="False" Height="21px" OnTextChanged="BuscarCargo_TextChanged" Width="199px" CssClass="inputPersonalizado" Enabled="False"></asp:TextBox>
&nbsp;<br />
                        &nbsp;
                </div>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="BuscarCargo"/>
                    </Triggers>
                    <ContentTemplate>
                        <div class="auto-style1">
                            <asp:ListBox ID="ListaCargos" runat="server" AutoPostBack="True" CssClass="comboPersonalizado" Enabled="False" Height="162px" OnSelectedIndexChanged="ListaCargos_SelectedIndexChanged" Width="269px"></asp:ListBox>
                            &nbsp;<br /> &nbsp;&nbsp;
                            <br />
                            <asp:Button ID="BotonMod" runat="server" CssClass="botonCualquiera" Enabled="False" OnClick="Button3_Click" Text="Modificar" />
                            &nbsp;</div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                        </div>
    </form>
</asp:Content>
<asp:Content ID="Content4" runat="server" contentplaceholderid="Style">
    <style type="text/css">
        .auto-style1 {
            text-align: center;
        }
        .auto-style2 {
            width: 102%;
            overflow: hidden;
            text-align: center;
        }
    </style>
</asp:Content>
